<!--{if $_G['setting']['homestatus']}-->
	<!--{eval $_G[cookie][extstyle] = false;}-->
	<!--{subtemplate common/header_common}-->
    <!--{eval $online_member = who_online();}-->
    	 <!--{if $_G[uid]}-->
    	<script type='text/javascript' src='tt_client/js/loading.js'></script>
		<!--{/if}-->
		<script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
		<link rel="stylesheet" type="text/css" href="{$_G[setting][csspath]}data/cache/style_{STYLEID}_css_space.css?{VERHASH}" />
		<link id="style_css" rel="stylesheet" type="text/css" href="{STATICURL}space/{if $space[theme]}$space[theme]{else}t1{/if}/style.css?{VERHASH}">
		<style id="diy_style">$space[spacecss]</style>
</head>
	<body id="space">
		<div id="append_parent"></div>
		<div id="ajaxwaitid"></div>
		<!--{if $space['self'] && $_GET['diy'] == 'yes' && $do == 'index' }-->
		<link rel="stylesheet" type="text/css" href="{$_G[setting][csspath]}data/cache/style_{STYLEID}_css_diy.css?{VERHASH}" />
		<!--{/if}-->
        <!--{subtemplate common/navbar_menu_header}-->
		<!--{if $space['status'] == -1 && $_G['adminid'] == 1 }-->
			<p class="ptw xw1 xi1 hm"><img src="{IMGDIR}/locked.gif" alt="Locked" class="vm" /> {lang message_banned}</p>
		<!--{/if}-->
		<div id="hd" class="wp cl">
			<h2 id="spaceinfoshow">
				<!--{eval space_merge($space, 'field_home'); $space[domainurl] = space_domain($space);getuserdiydata($space);$personalnv = isset($_G['blockposition']['nv']) ? $_G['blockposition']['nv'] : '';}-->
				<strong id="spacename" class="mbn">
					<!--{if $space[spacename]}-->$space[spacename]<!--{else}-->{lang somebody_space} $space[username]<!--{/if}-->
				&nbsp;<a href="home.php?mod=rss&uid=$space[uid]" style="display:none">[RSS]</a>
                </strong>
				<span id="spacedescription" class="xs1 xw0 mtn">$space[spacedescription]</span>
			</h2>
            
            <!--{if $_G['uid'] &&  !$_G['gp_diy']}-->
                <div id="actionpage">
                <!--{if $space['self']}-->
                    <a href="home.php?mod=space&diy=yes" class="ahead btn"><span class="ecicon">&nbsp;&nbsp;</span> Trang trí giao diện</a>
                <!--{elseif !$space['self']}-->
                    <!--{if !$isfriend}-->
                        <a class="ahead btn" href="home.php?mod=spacecp&ac=friend&op=add&uid=$space[uid]&handlekey=addfriendhk_{$space[uid]}" id="a_friend_li_{$space[uid]}" onClick="showWindow(this.id, this.href, 'get', 0);">{lang block_profile_friend_add}</a>
                    <!--{else}-->
                        <a class='ahead btn' href="home.php?mod=spacecp&ac=friend&op=ignore&uid=$space[uid]&handlekey=ignorefriendhk_{$space[uid]}" id="a_ignore_{$space[uid]}" onClick="showWindow(this.id, this.href, 'get', 0);">{lang block_profile_friend_ignore}</a>
                    <!--{/if}-->
                        <a class='ahead btn eheadbtn' href="home.php?mod=spacecp&ac=poke&op=send&uid=$space[uid]&handlekey=propokehk_{$space[uid]}" id="a_poke_{$space[uid]}" onClick="showWindow(this.id, this.href, 'get', 0);">{lang block_profile_poke}</a>
                        <a class='ahead btn eheadbtn' href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$space[uid]&touid=$space[uid]&pmid=0&daterange=2" id="a_sendpm_$space[uid]" onClick="showWindow('showMsgBox', this.href, 'get', 0)">{lang block_profile_sendmessage}</a>
                         <a class='ahead btn eheadbtn' href="javascript:;" id="a_sendpm_$space[uid]" onClick="TrainTalker._b3({id:'{$space[uid]}', name:'{$space[username]}', online:false}, event)">{lang block_profile_chat}</a>
                <!--{/if}-->
                </div>
            <!--{/if}-->
			<!--{subtemplate home/space_header_personalnv}-->
		</div>
		<!--{if !empty($_G['setting']['plugins']['jsmenu'])}-->
			<ul class="p_pop h_pop" id="plugin_menu" style="display: none">
			<!--{loop $_G['setting']['plugins']['jsmenu'] $module}-->
			     <!--{if !$module['adminid'] || ($module['adminid'] && $_G['adminid'] > 0 && $module['adminid'] >= $_G['adminid'])}-->
			     <li>$module[url]</li>
			     <!--{/if}-->
			<!--{/loop}-->
			</ul>
		<!--{/if}-->
		$_G[setting][menunavs]
        <!--{eval $mnid = getcurrentnav();}-->
        <ul id="navs_menu" class="p_pop topnav_pop" style="display:none;">
        <!--{loop $_G['setting']['navs'] $nav}-->
            <!--{eval $nav_showmenu = strpos($nav['nav'], 'onmouseover="showMenu(');}-->
            <!--{eval $nav_navshow = strpos($nav['nav'], 'onmouseover="navShow(')}-->
            <!--{if $nav_hidden !== false || $nav_navshow !== false}-->
            <!--{eval $nav['nav'] = preg_replace("/onmouseover\=\"(.*?)\"/i", '',$nav['nav'])}-->
            <!--{/if}-->
            <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}--><li {$nav[nav]}></li><!--{/if}-->
        <!--{/loop}-->
        </ul>
        <ul id="myspace_menu" class="p_pop" style="display:none;">
            <li><a href="home.php?mod=space">{lang my_space}</a></li>
            <!--{loop $_G['setting']['mynavs'] $nav}-->
                <!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
                    <li>$nav[code]</li>
                <!--{/if}-->
            <!--{/loop}-->
        </ul>
<!--{else}-->
	<!--{subtemplate common/header}-->
<!--{/if}-->